feat(web): make /chat mobile-first (Claude/ChatGPT-style) - #17
Merged
Conversation
Reskin the web chat shell to be mobile-first while keeping all desktop behavior behind md: breakpoints. The chat engine and backend API are untouched. - Foundation: viewportFit cover, h-dvh containers, additive safe-area utility classes (safe-topbar/safe-composer/safe-drawer). - Shell: single column on mobile with an off-canvas drawer sidebar (scrim, Esc, scroll-lock, auto-close) and a compact mobile top bar; the docked rail/grid is preserved at md+. - Composer: home-bar-safe sticky bar, 16px input to stop iOS zoom, larger touch targets on phones. - Secondary panels: reusable BottomSheet (drag handle, swipe-to-dismiss); Canvas renders as a column on desktop and a sheet on mobile, with auto-open gated to desktop; Share dialog docks to the bottom on mobile. - Stable feel: global prefers-reduced-motion backstop. - PWA: web manifest (standalone, start_url /chat), maskable icon, generated apple-icon (force-dynamic), appleWebApp metadata, metadataBase. Build, typecheck, and 132 web tests pass. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reskins the
apps/web/chatsurface to be mobile-first, mirroring the Claude / ChatGPT mobile apps, while keeping all desktop behavior behindmd:breakpoints. The chat engine and backend API are untouched.Changes
viewportFit: cover,h-dvhcontainers, additive safe-area utility classes (safe-topbar/safe-composer/safe-drawer),metadataBase.md+.BottomSheet(drag handle, swipe-to-dismiss); Canvas renders as a column on desktop and a bottom sheet on mobile, with auto-open gated to desktop; Share dialog docks to the bottom on mobile.prefers-reduced-motionbackstop.start_url/chat), maskable icon, generatedapple-icon(force-dynamic),appleWebAppmetadata.Notes
apple-icon.tsxisforce-dynamicon purpose: prerendering thenext/ogroute under the strict CSP/middleware throwsTypeError: Invalid URLand failsnext build.Verification
Typecheck,
next build, and all 132 web tests pass.🤖 Generated with Claude Code